Skip to content

PERF/REGR: IntervalIndex.intersection, PeriodIndex.get_loc #42293

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 29, 2021

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

Should fix #42240, #42247, not checking the box because I jumped the gun last time.

@simonjayhawkins simonjayhawkins added this to the 1.3 milestone Jun 29, 2021
@simonjayhawkins simonjayhawkins added Interval Interval data type Period Period data type Index Related to the Index class or subclasses Performance Memory or execution speed performance labels Jun 29, 2021
@simonjayhawkins simonjayhawkins mentioned this pull request Jun 29, 2021
@jreback
Copy link
Contributor

jreback commented Jun 29, 2021

looks good can u run the asvs on these to see the change

@jreback
Copy link
Contributor

jreback commented Jun 29, 2021

backporting in any event

# --------------------------------------------------------------------
# Set Operations

def _intersection(self, other, sort):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could probably do this more generally (e.g. push it down into Index itself). but of course for later.

elif isinstance(key, Period):
pass
sfreq = self.freq
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could codify in a method (the comparison) but nbd (for later)

@jreback jreback merged commit 17ecb56 into pandas-dev:master Jun 29, 2021
@lumberbot-app

This comment has been minimized.

@jreback
Copy link
Contributor

jreback commented Jun 29, 2021

@meeseeksdev backport 1.3.x

@jreback
Copy link
Contributor

jreback commented Jun 29, 2021

@jbrockmendel needs a manual backport

@lumberbot-app

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Index Related to the Index class or subclasses Interval Interval data type Performance Memory or execution speed performance Period Period data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PERF: regression in IntervalIndex intersection
3 participants